﻿<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title><?php echo $this->escape($this->title);?></title>
<link rel="stylesheet" type="text/css" href="../script/ext/resources/css/ext-all.css" />
<script type="text/javascript" src="../script/ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../script/ext/ext-all.js"></script>
<script type="text/javascript">
Ext.onReady(function(){

var genres = new Ext.data.Store({
    reader: new Ext.data.JsonReader({
        fields: ['id', 'name'],
        root: 'rows'
        }),
    proxy: new Ext.data.HttpProxy({
        url: '/eCRM/location/getJson'
    })
});

var movie_form = new Ext.FormPanel({
    url: 'movie-form-submit.php',
    renderTo: document.body,
    frame: true,
    title: 'Movie Information Form',
    width: 250,
    items: [{
        xtype: 'textfield',
        fieldLabel: 'Title',
        name: 'title'
        },{
        xtype: 'textfield',
        fieldLabel: 'Director',
        name: 'director'
        },{
        xtype: 'datefield',
        fieldLabel: 'Released',
        name: 'released'
        },{
        xtype: 'combo',
        name: 'genre',
        fieldLabel: 'Genre',
        mode: 'local',
        typeAhead:true,
        store: genres,
        displayField:'name',
        width: 120
    }]
   });
    genres.load();
  });

</script>
</head>
<body>
</body>
</html>